package vn.vfriends.soffice.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.soffice.entity.Menu;

/**
 *
 * @author chaungoctuan@gmail.com
 */
public interface MenuService extends Serializable {

    void create(Menu menu) throws Exception;

    void edit(Menu menu) throws Exception;

    void remove(Menu menu) throws Exception;

    Menu find(Object id);
    
    Menu findByName(String name);

    List<Menu> findAll();
    
    List<Menu> findRange(int[] range);

    int count();

    public List<Menu> findChildren(Menu parent);

    public List<Menu> findFirstLevel();
}
